<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet"/>
</head>
<body class="container">
<div class="header">
    <h1 style=" margin-left: 100px">添加体检报告</h1>
</div>
<div style="margin-top: 50px">
    <form class="form-horizontal"   th:action="@{/pe/peUserManage/editPeItems}" th:object="${peItems}" method="post" id="form">
        <input type="hidden" name="id" th:value="*{id}"/>
        <div class="form-group">
            <label for="peId" class="col-sm-2 control-label">体检单号</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="peId"  id="peId" th:value="*{peId}" placeholder="体检单号"/>
            </div>
        </div>
        <div class="form-group">
            <label for="tubeId" class="col-sm-2 control-label">试管编号</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="tubeId"  id="tubeId" th:value="*{tubeId}" placeholder="试管编号"/>
            </div>
        </div>
        <div class="form-group">
            <label for="visionLeft" class="col-sm-2 control-label">左眼视力</label>
            <div class="col-sm-5">
                <input type="number" step="0.1" class="form-control" name="visionLeft"  id="visionLeft" th:value="*{visionLeft}" placeholder="左眼视力"/>
            </div>
        </div>
        <div class="form-group">
            <label for="visionRight" class="col-sm-2 control-label">右眼视力</label>
            <div class="col-sm-5">
                <input type="number" step="0.1" class="form-control" name="visionRight"  id="visionRight" th:value="*{visionRight}" placeholder="右眼视力"/>
            </div>
        </div>
        <div class="form-group">
            <label for="colorVision" class="col-sm-2 control-label">色觉</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="colorVision"  id="colorVision" th:value="*{colorVision}" placeholder="色觉"/>
            </div>
        </div>
        <div class="form-group">
            <label for="oiName" class="col-sm-2 control-label">眼科检查员</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="oiName"  id="oiName" th:value="*{oiName}" placeholder="眼科检查员"/>
            </div>
        </div>
        <div class="form-group">
            <label for="bloodPressure" class="col-sm-2 control-label">血压</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="bloodPressure"  id="bloodPressure" th:value="*{bloodPressure}" placeholder="血压"/>
            </div>
        </div>
        <div class="form-group">
            <label for="ca" class="col-sm-2 control-label">心肺听诊</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="ca"  id="ca" th:value="*{ca}" placeholder="心肺听诊"/>
            </div>
        </div>
        <div class="form-group">
            <label for="miId" class="col-sm-2 control-label">内科检查员</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="miId"  id="miId" th:value="*{miId}" placeholder="内科检查员"/>
            </div>
        </div>
        <div class="form-group">
            <label for="height" class="col-sm-2 control-label">身高</label>
            <div class="col-sm-5">
                <input type="number" class="form-control" name="height"  id="height" th:value="*{height}" placeholder="身高,单位cm" />
            </div>
        </div>
        <div class="form-group">
            <label for="weight" class="col-sm-2 control-label">体重</label>
            <div class="col-sm-5">
                <input type="number" step="0.1" class="form-control" name="weight"  id="weight" th:value="*{weight}" placeholder="体重,单位kg"/>
            </div>
        </div>
        <div class="form-group">
            <label for="skin" class="col-sm-2 control-label">皮肤</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="skin"  id="skin" th:value="*{skin}" placeholder="皮肤"/>
            </div>
        </div>
        <div class="form-group">
            <label for="spinalLimbs" class="col-sm-2 control-label">脊柱四肢</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="spinalLimbs"  id="spinalLimbs" th:value="*{spinalLimbs}" placeholder="脊柱四肢"/>
            </div>
        </div>
        <div class="form-group">
            <label for="siName" class="col-sm-2 control-label">外科检查员</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="siName"  id="siName" th:value="*{siName}" placeholder="外科检查员"/>
            </div>
        </div>
        <div class="form-group">
            <label for="blood" class="col-sm-2 control-label">血液</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="blood"  id="blood" th:value="*{blood}" placeholder="血液"/>
            </div>
        </div>
        <div class="form-group">
            <label for="biName" class="col-sm-2 control-label">血液检查员</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="biName"  id="biName" th:value="*{biName}" placeholder="血液检查员"/>
            </div>
        </div>
        <div class="form-group">
            <label for="chestDialysis" class="col-sm-2 control-label">胸部透析</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="chestDialysis"  id="chestDialysis" th:value="*{chestDialysis}" placeholder="胸部透析"/>
            </div>
        </div>
        <div class="form-group">
            <label for="cdiName" class="col-sm-2 control-label">胸部透析检查员</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="cdiName"  id="cdiName" th:value="*{cdiName}" placeholder="胸部透析检查员"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="submit" value="Submit" class="btn btn-info" onclick="f()"/>
                &nbsp; &nbsp; &nbsp;
                <a onclick="javascript:window.history.go(-1)" class="btn btn-info">返回</a>
            </div>
        </div>
    </form>
</div>
<script>
    function f() {
        var form = document.getElementById("form");
        var visionLeft = document.getElementById("visionLeft").value*1;
        var visionRight = document.getElementById("visionRight").value*1;
        var height = document.getElementById("height").value*1;
        var weight = document.getElementById("weight").value*1;

        form.submit(visionLeft);
        form.submit(visionRight);
        form.submit(height);
        form.submit(weight);
    }
</script>
</body>
</html>